package hotel.switchs.oversea.online.mapper;

import feign.Param;
import hotel.base.oversea.repository.MyMapper;
import hotel.switchs.oversea.api.entity.SwitchHotelInfo;

import java.util.Map;

/**
 * @Author lmf
 * @Date 2020/5/15 16:09
 **/
public interface SwitchHotelInfoMapper extends MyMapper<SwitchHotelInfo> {
    Object queryPageDto(Map<String, Integer> map);

    Integer deleteBatch(Map map);
    /**
     * 获取母酒店id
     * @param hotelId
     * @return
     */
    int selectMasterId(@Param("hotelId") Integer hotelId);

    /**
     * 根据子酒店id 获取酒店星级
     * @param hotelId
     * @return
     */
    Integer selectHotelStarByHotelId(@Param("hotelId") Integer hotelId);
}
